package com.yilin.tms.gps.service;

import org.springframework.data.domain.*;
import com.yilin.tms.core.entity.gps.GpsPoint;
import java.util.Date;
import java.util.List;

/**
 * @author liuxu :)
 * @version 1.0
 * @date 2022-10-28 0028
 */
public interface ITrailStorageService {
    /**
     * 添加轨迹点
     */
    void addTrackPoints(List<GpsPoint> gpsPointList);

    /**
     * 获取轨迹点
     */
    Page<GpsPoint> queryPointByTransportNo(GpsPoint transportNo, Integer start, Integer limit);

    /**
     * 获取文档个数
     */
    long getCountDocuments(String transportNo, Date startDate, Date endDate);

    GpsPoint getRecentPointByTruckNo(String transportNo);

    List<GpsPoint> getPointsBytransportNo(String transportNo);

    void removePoint(GpsPoint gpsPoint);

    List<GpsPoint> findAllPointsByDate(String traceId, String gpsTime);

    List<GpsPoint> findAllPointsByTraceId(String traceId, Integer page, Integer limit);
}
